import dotenvFlow from 'dotenv-flow';
import AppConfig from './app-config';

export function loadAppConfig(): AppConfig {
  process.env.NODE_ENV ??= 'dev';
  dotenvFlow.config();

  return {
    databaseUrl: process.env.DATABASE_URL || '',
  };
}
